function roleControl() {
	var long = 0;
	var user_control = document.getElementsByClassName("user_control");
	var admin_control = document.getElementsByClassName("admin_control");
	/*
	 * 学生
	 */
	if (login_json != null) {
		if (login_json.user_type == "user") {
			long = admin_control.length;
			for (var num = 0; num < long; num++) {
				admin_control[0].parentNode.removeChild(admin_control[0]);
			}
		} else if (login_json.user_type == "admin") {
			long = user_control.length;
			for (var num = 0; num < long; num++) {
				user_control[0].parentNode.removeChild(user_control[0]);
			}
		}

	} else {
		toastr.error("登录失效，请重新登录", "操作失败");
		window.location = "/jxfgyj/login.jsp";
	}

	/*
	 * 
	 */
	stop_load();

}